from django.urls import path
from . import views

urlpatterns = [
    #邮件激活路由
    path('activation',views.active_view),
    path('<str:username>/address',views.AddressView.as_view()),#类视图的使用方式，必须加上as_view()
    path('<str:username>/address/<int:id>',views.AddressView.as_view()),
    #默认地址
    path('<str:username>/address/default',views.DefaultAddressView.as_view()),
    path('sms/code',views.sms_view),
    #微博登录获取code
    path("weibo/authorization",views.OAuthWeiBoView.as_view()),
    #微博登录获取access_token
    path("weibo/users",views.OAuthWeiBoTokenView.as_view()),
]
